import request from '@/utils/request';

//得到可用信息类型列表
export async function InfoTypeList() {
  return request('/api/info/InfoTypeList', {
    method: 'post',
    data: {
      page: 1,
      limit: 100,
    }
  })
}

export async function InfoListByQuery(params) {
  return request('/api/info/InfoListByQuery', {
    method: 'post',
    data: {
      ...params,
    },
  })
}

export async function InfoSingle(params) {
  return request('/api/info/Info', {
    method: 'post',
    data: {
      ...params,
    },
  })
}

export async function InfoAdd(params) {
  return request('/api/info/InfoAdd', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoEdit(params) {
  return request('/api/info/InfoEdit', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoCopy(params) {
  return request('/api/info/InfoCopy', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoDel(params) {
  return request('/api/info/InfoDel', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoEditMulti(params) {
  return request('/api/info/InfoEditMulti', {
    method: 'post',
    data: params,
  })
}

export async function uploadFile(formData) {
  return request('/api/info/uploadFile', {
    method: 'post',
    data: formData,
  })
}

// /api/info/uploadImg imagebox使用

